package com.chengqs.rainbow.chat.api.impl;

import com.chengqs.rainbow.api.chat.ChatApi;
import com.chengqs.rainbow.api.chat.domain.ChatDTO;
import com.chengqs.rainbow.chat.service.ChatService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * <B>主类名称：</B>ChatApiImpl<BR>
 * <B>概要说明：</B>enter<BR>
 *
 * @author: chengqs
 * @create: 2025-09-16 22:51:29
 **/
@DubboService(version = "1.0.0", interfaceClass = ChatApi.class)
public class ChatApiImpl implements ChatApi {

    @Autowired
    private ChatService chatService;

    @Override
    public void addChat(ChatDTO chatDTO) {
        chatService.save(chatDTO);
    }
}
